<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="Stylesheet" type="text/css" href="doc.css" />
		<title>OCL Query Example</title>
	</head>
	<body>
		<h1>OCL Query Example</h1>

		<h2>Introduction</h2>
		<p>
			This example describes the usage of OCL extensions to the query framework within the SDK.
			It demonstrates how to author basic OCL-based conditions
			used to formulate OCL queries over the library models.
		</p>

		<h2>References</h2>
		<p>
			Please refer to the document <a href="exampleOverview.html">EMF Model Query Examples Overview</a>
			for reviewing the library meta-model used as the basis for demonstrating the capabilities in this example.
		</p>

		<h3>Description</h3>
		<p>
			This example plug-in is named <code>org.eclipse.emf.query.examples.ocl</code>.
			This plug-in contributes the <b>OCL Query</b> menu to the library
			editor's main menu and context menu. The menu has two query wizards:
			<ol>
				<li><b>Query with Context:</b> Select context <code>EClass</code> and enter a boolean OCL condition (an example is provided)</li>
				<li><b>Context-free Query:</b> Just type a boolean OCL condition</li>
			</ol>
		</p>

		<p>
			Please refer to the tutorial <a href="../../tutorials/oclQueryTutorial.html">OCL Query Tutorial</a> 
			for reviewing the code samples within this example.
		</p>

		<img src="oclQuery.gif" alt="OCL Query Example Contributions" />

		<h2>Usage</h2>
		<p>
			Refer to this example if you need:
			<ol>
				<li>To implement OCL extensions to the query framework</li>
			</ol>
		</p>

		<hr />

		<p>
			<a href="http://www.eclipse.org/legal/epl-v10.html">Copyright (c) 2000,2005 IBM Corporation and others. All Rights Reserved.</a>
		</p>
	</body>
</html>
